package com.ruoyi.datam.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.base.datam.MiMainchanB;
import com.ruoyi.datam.mapper.MiMainchanBMapper;
import com.ruoyi.datam.service.IMiMainchanBService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 水管员渠道对照Service业务层处理
 * 
 * @author ps
 * @date 2023-03-20
 */
@Service
public class MiMainchanBServiceImpl implements IMiMainchanBService
{
    @Autowired
    private MiMainchanBMapper miMainchanBMapper;

    /**
     * 查询水管员渠道对照
     * 
     * @param mainYear 水管员渠道对照主键
     * @return 水管员渠道对照
     */
    @Override
    public MiMainchanB selectMiMainchanBByMainYear(String mainYear)
    {
        return miMainchanBMapper.selectMiMainchanBByMainYear(mainYear);
    }

    /**
     * 查询水管员渠道对照列表
     * 
     * @param miMainchanB 水管员渠道对照
     * @return 水管员渠道对照
     */
    @Override
    public List<MiMainchanB> selectMiMainchanBList(MiMainchanB miMainchanB)
    {
        return miMainchanBMapper.selectMiMainchanBList(miMainchanB);
    }

    /**
     * 新增水管员渠道对照
     * 
     * @param miMainchanB 水管员渠道对照
     * @return 结果
     */
    @Override
    public int insertMiMainchanB(MiMainchanB miMainchanB)
    {
        return miMainchanBMapper.insertMiMainchanB(miMainchanB);
    }

    /**
     * 修改水管员渠道对照
     * 
     * @param miMainchanB 水管员渠道对照
     * @return 结果
     */
    @Override
    public int updateMiMainchanB(MiMainchanB miMainchanB)
    {
        return miMainchanBMapper.updateMiMainchanB(miMainchanB);
    }

    /**
     * 批量删除水管员渠道对照
     * 
     * @param mainYears 需要删除的水管员渠道对照主键
     * @return 结果
     */
    @Override
    public int deleteMiMainchanBByMainYears(String[] mainYears)
    {
        return miMainchanBMapper.deleteMiMainchanBByMainYears(mainYears);
    }

    /**
     * 删除水管员渠道对照信息
     * 
     * @param mainCd 水管员渠道对照主键
     * @return 结果
     */
    @Override
    public int deleteMiMainchanBByMainCd(String mainCd)
    {
        return miMainchanBMapper.deleteMiMainchanBByMainCd(mainCd);
    }
}
